package practiceProjects;

import java.util.Random;

/**
 * @Project ：learn_java
 * @File ：RandomGamePicker.java
 * @IDE ：IntelliJ IDEA
 * @Author ：自由如风间
 * @Date ：2025/5/7 11:04
 * @Description ：专治电子阳痿，随机帮你选一个游戏
 */


public class RandomGamePicker {
    public static void main(String[] args) {
        String[] games = {
                "艾尔登法环",
                "Lies of P",
                "堕落之主",
                "文明6",
                "只狼",
                "深海迷航",
                "Darkwood",
                "tModloader",
                "Don't starve",
                "INSIDE",
                "Starbound",
                "Noita",
                "蔚蓝",
                "星露谷物语",
                "杀戮尖塔",
                "shapez",
                "Kingdom",
                "猫神牧场",
                "Undertale",
                "pvz",
                "The Binding of Isaac",
                "动物井",
                "Zuma"
        };

        System.out.println("即将揭晓！准备好了吗？");
        for (int i = 3; i > 0; i--) {
            try {
                System.out.println("倒计时：" + i + "秒");
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }

        Random random = new Random();
        int i = random.nextInt(games.length);
        System.out.println("最终选择是：" + games[i]);
    }
}
